ci: Cache the reftest artifacts
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 12 Apr 2019 19:58:29 +0000 (20:58 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 12 Apr 2019 19:58:29 +0000 (20:58 +0100)
Keeping the reftest output images as artifacts of a job allows us to
browse them and download them straight from GitLab.

.gitlab-ci.yml
testsuite/reftests/meson.build

index c5c681fffd618d0c73a9a3f2e20760cea9c55fa4..57cb4ab9c1f4b726ef6cad1c5fe2843623c5ad29 100644 (file)
@@ -26,6 +26,7 @@ fedora-x86_64:
     paths:
       - "${CI_PROJECT_DIR}/_build/meson-logs"
       - "${CI_PROJECT_DIR}/_build/report.xml"
+      - "${CI_PROJECT_DIR}/_build/testsuite/reftests/output/*.png"
   cache:
     key: "$CI_JOB_NAME"
     <<: *cache-paths
index b91ec0927e105107bb1b23ebcf5343fab6e6ea58..38c98cb6e740bf7a87f291747ec60aac2e2a738d 100644 (file)
@@ -427,7 +427,12 @@ xfails = [
 foreach testname : testdata
   if testname.endswith('.ui') and not testname.endswith('.ref.ui')
     test('reftest ' + testname, gtk_reftest,
-         args: [ '--tap', '-k', '--verbose', join_paths(meson.current_source_dir(), testname) ],
+         args: [ '--tap',
+                 '-k',
+                 '--verbose',
+                 '-o', join_paths(meson.current_build_dir(), 'output'),
+                 join_paths(meson.current_source_dir(), testname),
+         ],
          env: [ 'GIO_USE_VOLUME_MONITOR=unix',
                 'GSETTINGS_BACKEND=memory',
                 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),